{% extends 'base.html' %}
{% block title %}Brisbane Coupon{% endblock %}
{% block stylesheet %}
{{ block.super }}
{% endblock%}

{% block javascript %}
{{ block.super }}
{% endblock%}

{% block content %}
<div>
  <form method="get" action="">
    <input type="search" name="q" id="id_q" />
  </form>   
  <ul data-role="listview" data-inset="true">
    <li data-role="list-divider">Coupon</li>
    {% for c in objects_page.object_list %}
    <li>
      <a href="{{ c.event.murl }}">
      <h3>{{ c.name }}</h3>
      <p>{{ c.event.name }}</p>
      <p class="ui-li-aside">By {{ c.event.edate|date:"D d M" }}</p>
      </a>
    </li>
    {% endfor %}
  </ul>
  {% include 'mpaginator.html' %}
</div>
{% endblock %}
